﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.Events;
using Orchard.Security;

namespace DanubiusInfo.Orchard.Ldap.Events
{
    public class UserCreatedOnTheFlyContext
    {
        public UserCreatedOnTheFlyContext(IUser user, CreateUserParams createUserParams)
        {
            User = user;
            CreateUserParams = createUserParams;
        }

        public IUser User { get; private set; }
        public CreateUserParams CreateUserParams { get; private set; }
        public bool Cancel { get; set; }
    }

    public interface ILdapUserEventHandler : IEventHandler
    {
        void CreatedOnTheFly(UserCreatedOnTheFlyContext context);
    }
}